package cn.tedu.micro.service.business.controller;

import cn.tedu.micro.service.business.service.BusinessService;
import cn.tedu.micro.service.common.JsonResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/business")
public class BusinessController {
    @Autowired
    private BusinessService businessService;

    @GetMapping("/buy")
    public JsonResult buy(){
        businessService.buy();
        return JsonResult.ok("购买成功");
    }
}
